Package | hl7.fhir.uv.xver |
Type | StructureMap |
Id | Id |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-DocumentManifest3to4.html |
Url | http://hl7.org/fhir/StructureMap/DocumentManifest3to4 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | DocumentManifest3to4 |
Title | DocumentManifest Transforms: R3 to R4 |
Experimental | False |
Realm | uv |
Authority | hl7 |
Description | DocumentManifestTransformsR3toR4 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/DocumentManifest3to4' /// name = 'DocumentManifest3to4' /// title = 'DocumentManifest Transforms: R3 to R4' /// status = 'active' uses "http://hl7.org/fhir/3.0/DocumentManifest" alias DocumentManifestR3 as source uses "http://hl7.org/fhir/4.0/DocumentManifest" alias DocumentManifest as target imports "http://hl7.org/fhir/StructureMap/*3to4" group DocumentManifest(source src : DocumentManifestR3, target tgt : DocumentManifest) extends DomainResource <<type+>> { src.masterIdentifier -> tgt.masterIdentifier; src.identifier -> tgt.identifier; src.status -> tgt.status; src.type -> tgt.type; src.subject -> tgt.subject; src.created -> tgt.created; src.author as s -> tgt.agent as t then DocumentManifestAgent(s, t); src.recipient -> tgt.recipient; src.source -> tgt.source; src.description -> tgt.description; src.content as s -> tgt.content as t then content(s, t); src.related as s -> tgt.related as t then DocumentManifestRelated(s, t); } group DocumentManifestAgent(source src, target tgt) extends BackboneElement { src -> tgt.type as cc, cc.coding as c, c.system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationType', c.code = 'AUT' "author"; src -> tgt.who as vt0 then Reference(src, vt0) "who"; } group content(source src, target tgt) extends Element { src.p : Attachment as s -> tgt.extension as ext, ext.url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-DocumentManifest.content.p_Attachment', ext.value = s; src.p : Reference as s then Reference(s, tgt); } group DocumentManifestRelated(source src, target tgt) extends BackboneElement { src.identifier -> tgt.identifier; src.ref -> tgt.ref; }
{
"resourceType" : "StructureMap",
"id" : "DocumentManifest3to4",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/DocumentManifest3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'DocumentManifest3to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'DocumentManifest Transforms: R3 to R4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/DocumentManifest<span style=\"color: navy\">" </span><b>alias </b>DocumentManifestR3 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/4.0/DocumentManifest<span style=\"color: navy\">" </span><b>alias </b>DocumentManifest <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*3to4<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>DocumentManifest<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>DocumentManifestR3, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>DocumentManifest<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.masterIdentifier<span style=\"color: navy\"><b> -> </b></span>tgt.masterIdentifier<span style=\"color: navy\">;</span>\r\n src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status<span style=\"color: navy\">;</span>\r\n src.type<span style=\"color: navy\"><b> -> </b></span>tgt.type<span style=\"color: navy\">;</span>\r\n src.subject<span style=\"color: navy\"><b> -> </b></span>tgt.subject<span style=\"color: navy\">;</span>\r\n src.created<span style=\"color: navy\"><b> -> </b></span>tgt.created<span style=\"color: navy\">;</span>\r\n src.author<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.agent<b> as </b><span style=\"color: maroon\">t</span><b> then </b>DocumentManifestAgent<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.recipient<span style=\"color: navy\"><b> -> </b></span>tgt.recipient<span style=\"color: navy\">;</span>\r\n src.source<span style=\"color: navy\"><b> -> </b></span>tgt.source<span style=\"color: navy\">;</span>\r\n src.description<span style=\"color: navy\"><b> -> </b></span>tgt.description<span style=\"color: navy\">;</span>\r\n src.content<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.content<b> as </b><span style=\"color: maroon\">t</span><b> then </b>content<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.related<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span>tgt.related<b> as </b><span style=\"color: maroon\">t</span><b> then </b>DocumentManifestRelated<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>DocumentManifestAgent<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src<span style=\"color: navy\"><b> -> </b></span> tgt.type<b> as </b><span style=\"color: maroon\">cc</span><span style=\"color: navy\">, </span> cc.coding<b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\">, </span> c.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/v3-ParticipationType'</span><span style=\"color: navy\">, </span> c.code = <span style=\"color: blue\">'AUT'</span> <i>"author"</i><span style=\"color: navy\">;</span>\r\n src<span style=\"color: navy\"><b> -> </b></span>tgt.who<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>Reference<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>"who"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>content<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>Element<span style=\"color: navy\"> {\r\n</span> src.p<span style=\"color: navy\"> : </span>Attachment<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -> </b></span> tgt.extension<b> as </b><span style=\"color: maroon\">ext</span><span style=\"color: navy\">, </span> ext.url = <span style=\"color: blue\">'http://hl7.org/fhir/3.0/StructureDefinition/extension-DocumentManifest.content.p_Attachment'</span><span style=\"color: navy\">, </span> ext.value = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n src.p<span style=\"color: navy\"> : </span>Reference<b> as </b><span style=\"color: maroon\">s</span><b> then </b>Reference<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>DocumentManifestRelated<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n src.ref<span style=\"color: navy\"><b> -> </b></span>tgt.ref<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/DocumentManifest3to4",
"version" : "0.1.0",
"name" : "DocumentManifest3to4",
"title" : "DocumentManifest Transforms: R3 to R4",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "DocumentManifestTransformsR3toR4",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/DocumentManifest",
"mode" : "source",
"alias" : "DocumentManifestR3"
},
{
"url" : "http://hl7.org/fhir/4.0/DocumentManifest",
"mode" : "target",
"alias" : "DocumentManifest"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to4"
],
"group" : [
{
"name" : "DocumentManifest",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "DocumentManifestR3",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "DocumentManifest",
"mode" : "target"
}
],
"rule" : [
{
"name" : "masterIdentifier",
"source" : [
{
"context" : "src",
"element" : "masterIdentifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "masterIdentifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "type",
"source" : [
{
"context" : "src",
"element" : "type",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "type",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "subject",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "subject",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "created",
"source" : [
{
"context" : "src",
"element" : "created",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "created",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "author",
"source" : [
{
"context" : "src",
"element" : "author",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "agent",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "DocumentManifestAgent",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
},
{
"name" : "recipient",
"source" : [
{
"context" : "src",
"element" : "recipient",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "recipient",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "source",
"source" : [
{
"context" : "src",
"element" : "source",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "source",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "description",
"source" : [
{
"context" : "src",
"element" : "description",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "description",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "content",
"source" : [
{
"context" : "src",
"element" : "content",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "content",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "content",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
},
{
"name" : "related",
"source" : [
{
"context" : "src",
"element" : "related",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "related",
"variable" : "t"
}
],
"dependent" : [
{
"name" : "DocumentManifestRelated",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "t"
}
]
}
]
}
]
},
{
"name" : "DocumentManifestAgent",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "author",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"element" : "type",
"variable" : "cc"
},
{
"context" : "cc",
"element" : "coding",
"variable" : "c"
},
{
"context" : "c",
"element" : "system",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"
}
]
},
{
"context" : "c",
"element" : "code",
"transform" : "copy",
"parameter" : [
{
"valueString" : "AUT"
}
]
}
]
},
{
"name" : "who",
"source" : [
{
"context" : "src"
}
],
"target" : [
{
"context" : "tgt",
"element" : "who",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "Reference",
"parameter" : [
{
"valueId" : "src"
},
{
"valueId" : "vt0"
}
]
}
]
}
]
},
{
"name" : "content",
"extends" : "Element",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "pAttachment",
"source" : [
{
"context" : "src",
"type" : "Attachment",
"element" : "p",
"variable" : "s"
}
],
"target" : [
{
"context" : "tgt",
"element" : "extension",
"variable" : "ext"
},
{
"context" : "ext",
"element" : "url",
"transform" : "copy",
"parameter" : [
{
"valueString" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-DocumentManifest.content.p_Attachment"
}
]
},
{
"context" : "ext",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "s"
}
]
}
]
},
{
"name" : "pReference",
"source" : [
{
"context" : "src",
"type" : "Reference",
"element" : "p",
"variable" : "s"
}
],
"dependent" : [
{
"name" : "Reference",
"parameter" : [
{
"valueId" : "s"
},
{
"valueId" : "tgt"
}
]
}
]
}
]
},
{
"name" : "DocumentManifestRelated",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ref",
"source" : [
{
"context" : "src",
"element" : "ref",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "ref",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}
XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.